// 引入mock 生成数据
import Mock from 'mockjs'
// 引入图片数据
import img1 from '../img/fe1af8ccdf691ddb5514eeec33017bd_03.png'
import img2 from '../img/fe1af8ccdf691ddb5514eeec33017bd_05.png'
import img3 from '../img/fe1af8ccdf691ddb5514eeec33017bd_07.png'
import img4 from '../img/fe1af8ccdf691ddb5514eeec33017bd_09.png'
import img5 from '../img/fe1af8ccdf691ddb5514eeec33017bd_11.png'
import img6 from '../img/fe1af8ccdf691ddb5514eeec33017bd_18.png'
import img7 from '../img/fe1af8ccdf691ddb5514eeec33017bd_20.png'
import img8 from '../img/fe1af8ccdf691ddb5514eeec33017bd_21.png'
import banner1 from '../img/img1.png'
import banenr2 from '../img/img3.png'
import banner3 from '../img/img4.png'
import icon1 from '../img/icon1.png'
import icon2 from '../img/icon2.png'
import icon3 from '../img/icon3.png'
var data = {
    'icon': [
        {
            'url': img1,
            'id': 1000,
            'title': '成绩查询'
        },
        {
            'url': img2,
            'id': 1001,
            'title': '作业中心'
        },
        {
            'url': img3,
            'id': 1002,
            'title': '学薄弱点'
        },
        {
            'url': img4,
            'id': 1003,
            'title': '考后规划'
        },
        {
            'url': img5,
            'id': 1004,
            'title': '全科精讲'
        },
        {
            'url': img6,
            'id': 1005,
            'title': '全科试卷'
        },
        {
            'url': img7,
            'id': 1006,
            'title': '试题库'

        },
        {
            'url': img8,
            'id': 1007,
            'title': '错题本'
        }
    ],
    'banner': [
        {
            'url': banner1,
            'id': 1008,
        },
        {
            'url': banenr2,
            'id': 1009,
        },
        {
            'url': banner3,
            'id': 1010
        },
    ],
    'icons': [
        {
            'url': icon1,
            'id': 'plan',
            'title': '我的学习计划'
        },
        {
            'url': icon2,
            'id': 'chair',
            'title': '我的讲座'
        },
        {
            'url': icon3,
            'id': 'voucher',
            'title': '我的代金券'
        },
    ]
}
// 创建接口
Mock.mock('/banner', 'post', (options) => {
    return ({
        code: 200,
        message: '获取成功',
        data
    })
})